package org.accp.dao;

import org.accp.pojo.Hisrole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HisroleDao extends CommonDao<Hisrole,Integer> {
    /**
     * 根据用户编号查询拥有的角色信息
     * @param userid
     * @return
     */
    public List<Hisrole> getByUserId(int userid);

    public void assignRights(@Param("roleid") Integer roleid, @Param("perids") List<Integer> perids);
}
